<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('房间流水列表')" />
	<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								查询开始时间：<input type="text" id="kssj" name="kssj" readonly="readonly" placeholder="yyyy-MM-dd"  />
							</li>
							
							<li>
								查询结束时间：<input type="text" id="jssj" name="jssj" readonly="readonly" placeholder="yyyy-MM-dd"  />
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="web:tRoomBill:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('web:tRoomBill:edit')}]];
        var removeFlag = [[${@permission.hasPermi('web:tRoomBill:remove')}]];
        var prefix = ctx + "web/tRoomBill";
        
        $("#kssj").datetimepicker({
   		    format: "yyyy-mm-dd",
   		    minView: "month",
   		    autoclose: true
   		});
        
        $("#kssj").datetimepicker("setDate", new Date());
        
        $("#jssj").datetimepicker({
   		    format: "yyyy-mm-dd",
   		    minView: "month",
   		    autoclose: true
   		});

        $(function() {
            var options = {
                url: prefix + "/list2",
				exportUrl: prefix + "/export",
                modalName: "统计",
		        showExport: true,
                columns: [
				{
					field : 'kssj', 
					title : '开始时间',
					sortable: true
				},
				{
					field : 'jssj', 
					title : '结束时间',
					sortable: true
				},
				{
					field : 'jcfy', 
					title : '基础费用合计',
					sortable: true
				},
				{
					field : 'ylfy', 
					title : '饮料费用合计',
					sortable: true
				},
				{
					field : 'xyfy', 
					title : '香烟费用合计',
					sortable: true
				},
				{
					field : 'csfy', 
					title : '超时费用合计',
					sortable: true
				},
				{
					field : 'zfy', 
					title : '总金额合计',
					sortable: true
				}]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>